<template>
	<view>
		<text>1234</text>
		<van-checkbox v-for="item in list"  @change="change" :key="item.id" >
			{{item.id}}
		</van-checkbox>
		<button @click="test">确定</button>
	</view>
</template>

<script>
	export default {
	  data() {
	    return {
	      list: [{id:1,checked:false}, {id:2,checked:false}],
	      result: [],
	    };
	  },
	  methods: {
	    toggle(index) {
			// debugger
	      this.$refs.checkboxes[index].toggle();
		  console.log(this.result);
	    },
		change(val){
			console.log(val)
		},
		test(){
			console.log(this.list)
		}
	  },
	};
</script>

<style>

</style>
